package com.ilock.action;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.ilock.service.IUserService;
import com.opensymphony.xwork2.ActionSupport;

public class TestAction extends ActionSupport {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private IUserService IUserService;
	
	public void setIUserService(IUserService IUserService){
		this.IUserService = IUserService;
	}
	
	public String execute() {
		System.out.println("user:"+IUserService.getUser());
		System.out.println(IUserService.checkIn("123@qq.com", "123"));
		//System.out.println(IUserService.checkIfExist("iuserEmail", "123@qq.com"));
		return "success";
	}

}
